package com.sg.service.biz.framework.impl;

import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.collection.CollectionUtil;
import com.sg.common.util.RedisUtil;
import com.sg.dto.biz.framework.req.*;
import com.sg.dto.biz.framework.res.*;
import com.sg.dto.integration.component.QuerySchemeAuthInfoDetailComReqDto;
import com.sg.dto.integration.component.QuerySchemeAuthInfoDetailComRespDto;
import com.sg.entity.HypertextContent;
import com.sg.entity.OmsSoftwareAuthorization;
import com.sg.service.base.framework.MHypertextContentService;
import com.sg.service.base.framework.MOmsSoftwareAuthorizationService;
import com.wicket.okrcomponent.integration.SchemeOpenRecordService;
import com.sg.common.exception.Assert;
import org.apache.skywalking.apm.toolkit.trace.Tag;
import org.apache.skywalking.apm.toolkit.trace.Tags;
import org.apache.skywalking.apm.toolkit.trace.Trace;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;

/**
 * @author ：
 * @version 1.0
 * @date ：
 */
@Service
public class SecurityServiceImpl
        implements com.wicket.okrframework.biz.service.SecurityService {

    @Resource
    private RedisUtil redisUtil;
    //@Resource
    //private MCustomFields2Service mCustomFields2Service;
    @Resource
    private NbSecurity nbSecurity;
    @Resource
    private SchemeOpenRecordService fwCompSchemeOpenRecordClient;

    /**
     * D1存档软件授权证书[6618]
     * gen by moon at 5/12/2023, 6:52:46 PM
     */
    @Trace(operationName = "D1存档软件授权证书")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public ArchiveSoftwareAuthorizationRespDto archiveSoftwareAuthorization(ArchiveSoftwareAuthorizationReqDto reqDto) {


        //virtualUsage 1-04-01查询软件授权证书详情  41320
        OmsSoftwareAuthorization omsSoftwareAuthorization = null;
        QuerySoftwareAuthorizationDetailReq querySoftwareAuthorizationDetailReq = new QuerySoftwareAuthorizationDetailReq();
        if (reqDto != null) {
            querySoftwareAuthorizationDetailReq.setAuthorizationId(reqDto.getAuthorizationId());//SimpleFieldAssign//sourceId:929055_1_41320
        }

        /*1-04-01查询软件授权证书详情[6605]   */
        Assert.isNull(querySoftwareAuthorizationDetailReq.getAuthorizationId(), "D1存档软件授权证书-1-04-01查询软件授权证书详情-授权证书ID不能为空", false);
        omsSoftwareAuthorization = mOmsSoftwareAuthorizationService.querySoftwareAuthorizationDetail(querySoftwareAuthorizationDetailReq)/*vcase invoke 本地 method 方法调用;*/;


        if ((omsSoftwareAuthorization != null && omsSoftwareAuthorization.getSubjectLifeCycle() != null && omsSoftwareAuthorization.getSubjectLifeCycle().equals("CURRENTLY_VALID"))) {
            //if(1-04-01查询软件授权证书详情.主体生命周期 等于 当前有效)  41322

            boolean bOOLEAN;
            OmsSoftwareAuthorization omsSoftwareAuthorization_2 = new OmsSoftwareAuthorization();
            omsSoftwareAuthorization_2.setSubjectLifeCycle("ARCHIVING");//sourceId:929107_1_41323

            /*1-04-01修改软件授权证书[6612]   */
            Assert.isNull(omsSoftwareAuthorization_2.getAuthorizationId(), "D1存档软件授权证书-1-04-01修改软件授权证书-授权证书ID不能为空", false);
            Assert.isNull(omsSoftwareAuthorization_2.getSubjectLifeCycle(), "D1存档软件授权证书-1-04-01修改软件授权证书-主体生命周期不能为空", false);
            bOOLEAN = mOmsSoftwareAuthorizationService.updateSoftwareAuthorization(omsSoftwareAuthorization_2)/*vcase invoke 本地 method 方法调用;*/;


        }
        ArchiveSoftwareAuthorizationRespDto retData = new ArchiveSoftwareAuthorizationRespDto();


        return retData;
    }

    /**
     * D1新增软件授权证书(公共)[6609]
     * gen by moon at 5/15/2023, 1:42:20 AM
     */
    @Trace(operationName = "D1新增软件授权证书(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public AddSoftwareAuthorizationComRespDto addSoftwareAuthorizationCom(AddSoftwareAuthorizationComReqDto reqDto) {


        QueryReceiveFieldDetailRespDto receptionServiceRes_1 = null;
        if ((reqDto != null && reqDto.getSubjectLifeCycle() != null && reqDto.getSubjectLifeCycle().equals("CURRENTLY_VALID"))) {
            //if(D1新增软件授权证书(公共).主体生命周期 等于 当前有效)  41334

            QuerySchemeAuthInfoDetailComRespDto querySchemeAuthInfoDetailComRespDto = null;
            QuerySchemeAuthInfoDetailComReqDto querySchemeAuthInfoDetailComReqDto = new QuerySchemeAuthInfoDetailComReqDto();
            if (reqDto != null) {
                querySchemeAuthInfoDetailComReqDto.setSchOpenRecordId(reqDto.getSchOpenRecordId());//SimpleFieldAssign//sourceId:929687_1_41362
            }

            /*D2-3查开通记录详情(公共)[2507]   */
            Assert.isNull(querySchemeAuthInfoDetailComReqDto.getSchOpenRecordId(), "D1新增软件授权证书(公共)-D2-3查开通记录详情(公共)-开通钥匙ID不能为空", false);
            querySchemeAuthInfoDetailComRespDto = fwCompSchemeOpenRecordClient.querySchemeAuthInfoDetailCom(querySchemeAuthInfoDetailComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


            if ((querySchemeAuthInfoDetailComRespDto != null && querySchemeAuthInfoDetailComRespDto.getApplexType() != null && querySchemeAuthInfoDetailComRespDto.getApplexType().equals("TENANT_SPACE"))) {
                //if(D2-3查开通记录详情(公共).开通对象钥匙标识 等于 租户空间)  41338

                if ((querySchemeAuthInfoDetailComRespDto != null && querySchemeAuthInfoDetailComRespDto.getIsMainConfScheme() != null && querySchemeAuthInfoDetailComRespDto.getIsMainConfScheme().equals("TRUE"))) {
                    //if(D2-3查开通记录详情(公共).是否主配置方案 等于 是)  41340

                    String string = null;
                    if (querySchemeAuthInfoDetailComRespDto != null) {
                        OmsSoftwareAuthorization omsSoftwareAuthorization = new OmsSoftwareAuthorization();
                        omsSoftwareAuthorization.setIsDeploymentEnabled("FALSE");//sourceId:928846_1_41346
                        if (querySchemeAuthInfoDetailComRespDto != null) {
                            omsSoftwareAuthorization.setAuthorizationName(querySchemeAuthInfoDetailComRespDto.getApplexName());//SimpleFieldAssign//sourceId:928834_1_41346
                            omsSoftwareAuthorization.setSchOpenRecordCode(querySchemeAuthInfoDetailComRespDto.getSchOpenRecordCode());//SimpleFieldAssign//sourceId:928836_1_41346
                            omsSoftwareAuthorization.setAuthorizationKeyTypeCode(querySchemeAuthInfoDetailComRespDto.getApplexType());//SimpleFieldAssign//sourceId:928837_1_41346
                            omsSoftwareAuthorization.setAuthorizationObjectId(querySchemeAuthInfoDetailComRespDto.getApplexId());//SimpleFieldAssign//sourceId:928838_1_41346
                            omsSoftwareAuthorization.setApplexName(querySchemeAuthInfoDetailComRespDto.getApplexName());//SimpleFieldAssign//sourceId:928839_1_41346
                            omsSoftwareAuthorization.setAuthorizationSpaceId(querySchemeAuthInfoDetailComRespDto.getTenantSpaceId());//SimpleFieldAssign//sourceId:928840_1_41346
                            omsSoftwareAuthorization.setSpaceShortName(querySchemeAuthInfoDetailComRespDto.getApplexName());//SimpleFieldAssign//sourceId:928841_1_41346
                            omsSoftwareAuthorization.setIsMainAuthorization(querySchemeAuthInfoDetailComRespDto.getIsMainConfScheme());//SimpleFieldAssign//sourceId:928845_1_41346
                            omsSoftwareAuthorization.setAuthorizationSchemeId(querySchemeAuthInfoDetailComRespDto.getConfSchemeId());//SimpleFieldAssign//sourceId:928847_1_41346
                            omsSoftwareAuthorization.setSchemeAuthorizationType(querySchemeAuthInfoDetailComRespDto.getAuthType());//SimpleFieldAssign//sourceId:928848_1_41346
                            omsSoftwareAuthorization.setAuthorizationNum(querySchemeAuthInfoDetailComRespDto.getRemainingQty() != null ? String.valueOf(querySchemeAuthInfoDetailComRespDto.getRemainingQty()) : "");//SimpleFieldAssign//sourceId:928849_1_41346
                            omsSoftwareAuthorization.setAuthorizationStartTime(querySchemeAuthInfoDetailComRespDto.getStartTime());//SimpleFieldAssign//sourceId:928850_1_41346
                            omsSoftwareAuthorization.setAuthorizationEndTime(querySchemeAuthInfoDetailComRespDto.getEndTime());//SimpleFieldAssign//sourceId:928851_1_41346
                            omsSoftwareAuthorization.setAuthorizationUnit(querySchemeAuthInfoDetailComRespDto.getAuthUnit());//SimpleFieldAssign//sourceId:928852_1_41346
                        }
                        if (reqDto != null) {
                            omsSoftwareAuthorization.setSchOpenRecordId(reqDto.getSchOpenRecordId());//SimpleFieldAssign//sourceId:928835_1_41346
                            omsSoftwareAuthorization.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:928854_1_41346
                        }

                        /*1-04-01新增软件授权证书（有空间）[6607]   */
                        Assert.isNull(omsSoftwareAuthorization.getAuthorizationName(), "D1新增软件授权证书(公共)-1-04-01新增软件授权证书（有空间）-授权证书名称不能为空", false);
                        Assert.isNull(omsSoftwareAuthorization.getSchOpenRecordId(), "D1新增软件授权证书(公共)-1-04-01新增软件授权证书（有空间）-开通钥匙ID不能为空", false);
                        Assert.isNull(omsSoftwareAuthorization.getSchOpenRecordCode(), "D1新增软件授权证书(公共)-1-04-01新增软件授权证书（有空间）-开通钥匙标识不能为空", false);
                        Assert.isNull(omsSoftwareAuthorization.getAuthorizationKeyTypeCode(), "D1新增软件授权证书(公共)-1-04-01新增软件授权证书（有空间）-开通钥匙类型标识不能为空", false);
                        Assert.isNull(omsSoftwareAuthorization.getAuthorizationObjectId(), "D1新增软件授权证书(公共)-1-04-01新增软件授权证书（有空间）-开通对象ID不能为空", false);
                        Assert.isNull(omsSoftwareAuthorization.getApplexName(), "D1新增软件授权证书(公共)-1-04-01新增软件授权证书（有空间）-冗余开通对象名称不能为空", false);
                        Assert.isNull(omsSoftwareAuthorization.getAuthorizationSpaceId(), "D1新增软件授权证书(公共)-1-04-01新增软件授权证书（有空间）-租户空间ID不能为空", false);
                        Assert.isNull(omsSoftwareAuthorization.getSpaceShortName(), "D1新增软件授权证书(公共)-1-04-01新增软件授权证书（有空间）-空间简称不能为空", false);
                        Assert.isNull(omsSoftwareAuthorization.getIsMainAuthorization(), "D1新增软件授权证书(公共)-1-04-01新增软件授权证书（有空间）-是否主证书不能为空", false);
                        Assert.isNull(omsSoftwareAuthorization.getIsDeploymentEnabled(), "D1新增软件授权证书(公共)-1-04-01新增软件授权证书（有空间）-是否已启用部署不能为空", false);
                        Assert.isNull(omsSoftwareAuthorization.getAuthorizationSchemeId(), "D1新增软件授权证书(公共)-1-04-01新增软件授权证书（有空间）-配置方案ID不能为空", false);
                        Assert.isNull(omsSoftwareAuthorization.getSchemeAuthorizationType(), "D1新增软件授权证书(公共)-1-04-01新增软件授权证书（有空间）-授权类型不能为空", false);
                        Assert.isNull(omsSoftwareAuthorization.getSubjectLifeCycle(), "D1新增软件授权证书(公共)-1-04-01新增软件授权证书（有空间）-主体生命周期不能为空", false);
                        string = mOmsSoftwareAuthorizationService.addSoftwareAuthorization(omsSoftwareAuthorization)/*vcase invoke 本地 method 方法调用;*/;


                    }
//ModelCode: receptionService
                    QueryReceiveFieldDetailRespDto receptionServiceRes = null;
                    if (string != null) {
                        QueryReceiveFieldDetailReqDto receptionServiceReq = new QueryReceiveFieldDetailReqDto();
                        if (string != null) {
                            receptionServiceReq.setAuthorizationId(string);//SimpleFieldAssign//sourceId:929549_1_41356
                        }

                        /*M1-接收出参字段[3715]  用于特殊方法接收上游入参。 */
                        Assert.isNull(receptionServiceReq.getAuthorizationId(), "D1新增软件授权证书(公共)-M1-接收出参字段-授权证书ID不能为空", false);
                        receptionServiceRes = nbSecurity.queryReceiveFieldDetail(receptionServiceReq);


                        receptionServiceRes_1 = receptionServiceRes;
                    }
                } else {
                    //else  41345

                    String string_2 = null;
                    if (querySchemeAuthInfoDetailComRespDto != null) {
                        OmsSoftwareAuthorization omsSoftwareAuthorization_1 = new OmsSoftwareAuthorization();
                        omsSoftwareAuthorization_1.setIsDeploymentEnabled("FALSE");//sourceId:928184_1_41347
                        if (querySchemeAuthInfoDetailComRespDto != null) {
                            omsSoftwareAuthorization_1.setAuthorizationName(querySchemeAuthInfoDetailComRespDto.getApplexName());//SimpleFieldAssign//sourceId:928172_1_41347
                            omsSoftwareAuthorization_1.setSchOpenRecordId(querySchemeAuthInfoDetailComRespDto.getSchOpenRecordId());//SimpleFieldAssign//sourceId:928173_1_41347
                            omsSoftwareAuthorization_1.setSchOpenRecordCode(querySchemeAuthInfoDetailComRespDto.getSchOpenRecordCode());//SimpleFieldAssign//sourceId:928174_1_41347
                            omsSoftwareAuthorization_1.setAuthorizationKeyTypeCode(querySchemeAuthInfoDetailComRespDto.getApplexType());//SimpleFieldAssign//sourceId:928175_1_41347
                            omsSoftwareAuthorization_1.setAuthorizationObjectId(querySchemeAuthInfoDetailComRespDto.getApplexId());//SimpleFieldAssign//sourceId:928176_1_41347
                            omsSoftwareAuthorization_1.setApplexName(querySchemeAuthInfoDetailComRespDto.getApplexName());//SimpleFieldAssign//sourceId:928177_1_41347
                            omsSoftwareAuthorization_1.setAuthorizationSpaceId(querySchemeAuthInfoDetailComRespDto.getTenantSpaceId());//SimpleFieldAssign//sourceId:928178_1_41347
                            omsSoftwareAuthorization_1.setIsMainAuthorization(querySchemeAuthInfoDetailComRespDto.getIsMainConfScheme());//SimpleFieldAssign//sourceId:928183_1_41347
                            omsSoftwareAuthorization_1.setAuthorizationSchemeId(querySchemeAuthInfoDetailComRespDto.getConfSchemeId());//SimpleFieldAssign//sourceId:928185_1_41347
                            omsSoftwareAuthorization_1.setSchemeAuthorizationType(querySchemeAuthInfoDetailComRespDto.getAuthType());//SimpleFieldAssign//sourceId:928186_1_41347
                            omsSoftwareAuthorization_1.setAuthorizationNum(querySchemeAuthInfoDetailComRespDto.getRemainingQty() != null ? String.valueOf(querySchemeAuthInfoDetailComRespDto.getRemainingQty()) : "");//SimpleFieldAssign//sourceId:928187_1_41347
                            omsSoftwareAuthorization_1.setAuthorizationStartTime(querySchemeAuthInfoDetailComRespDto.getStartTime());//SimpleFieldAssign//sourceId:928188_1_41347
                            omsSoftwareAuthorization_1.setAuthorizationEndTime(querySchemeAuthInfoDetailComRespDto.getEndTime());//SimpleFieldAssign//sourceId:928189_1_41347
                            omsSoftwareAuthorization_1.setAuthorizationUnit(querySchemeAuthInfoDetailComRespDto.getAuthUnit());//SimpleFieldAssign//sourceId:928190_1_41347
                        }
                        if (reqDto != null) {
                            omsSoftwareAuthorization_1.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:928192_1_41347
                        }

                        /*1-04-01新增软件授权证书[6607]   */
                        Assert.isNull(omsSoftwareAuthorization_1.getAuthorizationName(), "D1新增软件授权证书(公共)-1-04-01新增软件授权证书-授权证书名称不能为空", false);
                        Assert.isNull(omsSoftwareAuthorization_1.getSchOpenRecordId(), "D1新增软件授权证书(公共)-1-04-01新增软件授权证书-开通钥匙ID不能为空", false);
                        Assert.isNull(omsSoftwareAuthorization_1.getSchOpenRecordCode(), "D1新增软件授权证书(公共)-1-04-01新增软件授权证书-开通钥匙标识不能为空", false);
                        Assert.isNull(omsSoftwareAuthorization_1.getAuthorizationKeyTypeCode(), "D1新增软件授权证书(公共)-1-04-01新增软件授权证书-开通钥匙类型标识不能为空", false);
                        Assert.isNull(omsSoftwareAuthorization_1.getAuthorizationObjectId(), "D1新增软件授权证书(公共)-1-04-01新增软件授权证书-开通对象ID不能为空", false);
                        Assert.isNull(omsSoftwareAuthorization_1.getAuthorizationSpaceId(), "D1新增软件授权证书(公共)-1-04-01新增软件授权证书-租户空间ID不能为空", false);
                        Assert.isNull(omsSoftwareAuthorization_1.getIsMainAuthorization(), "D1新增软件授权证书(公共)-1-04-01新增软件授权证书-是否主证书不能为空", false);
                        Assert.isNull(omsSoftwareAuthorization_1.getIsDeploymentEnabled(), "D1新增软件授权证书(公共)-1-04-01新增软件授权证书-是否已启用部署不能为空", false);
                        Assert.isNull(omsSoftwareAuthorization_1.getAuthorizationSchemeId(), "D1新增软件授权证书(公共)-1-04-01新增软件授权证书-配置方案ID不能为空", false);
                        Assert.isNull(omsSoftwareAuthorization_1.getSchemeAuthorizationType(), "D1新增软件授权证书(公共)-1-04-01新增软件授权证书-授权类型不能为空", false);
                        Assert.isNull(omsSoftwareAuthorization_1.getSubjectLifeCycle(), "D1新增软件授权证书(公共)-1-04-01新增软件授权证书-主体生命周期不能为空", false);
                        string_2 = mOmsSoftwareAuthorizationService.addSoftwareAuthorization(omsSoftwareAuthorization_1)/*vcase invoke 本地 method 方法调用;*/;


                    }
//ModelCode: receptionService
                    QueryReceiveFieldDetailRespDto receptionServiceRes_2 = null;
                    if (string_2 != null) {
                        QueryReceiveFieldDetailReqDto receptionServiceReq_1 = new QueryReceiveFieldDetailReqDto();
                        if (string_2 != null) {
                            receptionServiceReq_1.setAuthorizationId(string_2);//SimpleFieldAssign//sourceId:929549_1_41357
                        }

                        /*M1-接收出参字段[3715]  用于特殊方法接收上游入参。 */
                        Assert.isNull(receptionServiceReq_1.getAuthorizationId(), "D1新增软件授权证书(公共)-M1-接收出参字段-授权证书ID不能为空", false);
                        receptionServiceRes_2 = nbSecurity.queryReceiveFieldDetail(receptionServiceReq_1);


                        receptionServiceRes_1 = receptionServiceRes_2;
                    }
                }
            } else if ((querySchemeAuthInfoDetailComRespDto != null && querySchemeAuthInfoDetailComRespDto.getApplexType() != null && querySchemeAuthInfoDetailComRespDto.getApplexType().equals("EVA_THEME"))) {
                //elseif(D2-3查开通记录详情(公共).开通对象钥匙标识 等于 评价主题)  41341

                String string_4 = null;
                if (querySchemeAuthInfoDetailComRespDto != null) {
                    OmsSoftwareAuthorization omsSoftwareAuthorization_2 = new OmsSoftwareAuthorization();
                    omsSoftwareAuthorization_2.setIsDeploymentEnabled("FALSE");//sourceId:928184_1_41348
                    if (querySchemeAuthInfoDetailComRespDto != null) {
                        omsSoftwareAuthorization_2.setAuthorizationName(querySchemeAuthInfoDetailComRespDto.getApplexName());//SimpleFieldAssign//sourceId:928172_1_41348
                        omsSoftwareAuthorization_2.setSchOpenRecordId(querySchemeAuthInfoDetailComRespDto.getSchOpenRecordId());//SimpleFieldAssign//sourceId:928173_1_41348
                        omsSoftwareAuthorization_2.setSchOpenRecordCode(querySchemeAuthInfoDetailComRespDto.getSchOpenRecordCode());//SimpleFieldAssign//sourceId:928174_1_41348
                        omsSoftwareAuthorization_2.setAuthorizationKeyTypeCode(querySchemeAuthInfoDetailComRespDto.getApplexType());//SimpleFieldAssign//sourceId:928175_1_41348
                        omsSoftwareAuthorization_2.setAuthorizationObjectId(querySchemeAuthInfoDetailComRespDto.getApplexId());//SimpleFieldAssign//sourceId:928176_1_41348
                        omsSoftwareAuthorization_2.setApplexName(querySchemeAuthInfoDetailComRespDto.getApplexName());//SimpleFieldAssign//sourceId:928177_1_41348
                        omsSoftwareAuthorization_2.setAuthorizationSpaceId(querySchemeAuthInfoDetailComRespDto.getTenantSpaceId());//SimpleFieldAssign//sourceId:928178_1_41348
                        omsSoftwareAuthorization_2.setIsMainAuthorization(querySchemeAuthInfoDetailComRespDto.getIsMainConfScheme());//SimpleFieldAssign//sourceId:928183_1_41348
                        omsSoftwareAuthorization_2.setAuthorizationSchemeId(querySchemeAuthInfoDetailComRespDto.getConfSchemeId());//SimpleFieldAssign//sourceId:928185_1_41348
                        omsSoftwareAuthorization_2.setSchemeAuthorizationType(querySchemeAuthInfoDetailComRespDto.getAuthType());//SimpleFieldAssign//sourceId:928186_1_41348
                        omsSoftwareAuthorization_2.setAuthorizationNum(querySchemeAuthInfoDetailComRespDto.getRemainingQty() != null ? String.valueOf(querySchemeAuthInfoDetailComRespDto.getRemainingQty()) : "");//SimpleFieldAssign//sourceId:928187_1_41348
                        omsSoftwareAuthorization_2.setAuthorizationStartTime(querySchemeAuthInfoDetailComRespDto.getStartTime());//SimpleFieldAssign//sourceId:928188_1_41348
                        omsSoftwareAuthorization_2.setAuthorizationEndTime(querySchemeAuthInfoDetailComRespDto.getEndTime());//SimpleFieldAssign//sourceId:928189_1_41348
                        omsSoftwareAuthorization_2.setAuthorizationUnit(querySchemeAuthInfoDetailComRespDto.getAuthUnit());//SimpleFieldAssign//sourceId:928190_1_41348
                    }
                    if (reqDto != null) {
                        omsSoftwareAuthorization_2.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:928192_1_41348
                    }

                    /*1-04-01新增软件授权证书[6607]   */
                    Assert.isNull(omsSoftwareAuthorization_2.getAuthorizationName(), "D1新增软件授权证书(公共)-1-04-01新增软件授权证书-授权证书名称不能为空", false);
                    Assert.isNull(omsSoftwareAuthorization_2.getSchOpenRecordId(), "D1新增软件授权证书(公共)-1-04-01新增软件授权证书-开通钥匙ID不能为空", false);
                    Assert.isNull(omsSoftwareAuthorization_2.getSchOpenRecordCode(), "D1新增软件授权证书(公共)-1-04-01新增软件授权证书-开通钥匙标识不能为空", false);
                    Assert.isNull(omsSoftwareAuthorization_2.getAuthorizationKeyTypeCode(), "D1新增软件授权证书(公共)-1-04-01新增软件授权证书-开通钥匙类型标识不能为空", false);
                    Assert.isNull(omsSoftwareAuthorization_2.getAuthorizationObjectId(), "D1新增软件授权证书(公共)-1-04-01新增软件授权证书-开通对象ID不能为空", false);
                    Assert.isNull(omsSoftwareAuthorization_2.getAuthorizationSpaceId(), "D1新增软件授权证书(公共)-1-04-01新增软件授权证书-租户空间ID不能为空", false);
                    Assert.isNull(omsSoftwareAuthorization_2.getIsMainAuthorization(), "D1新增软件授权证书(公共)-1-04-01新增软件授权证书-是否主证书不能为空", false);
                    Assert.isNull(omsSoftwareAuthorization_2.getIsDeploymentEnabled(), "D1新增软件授权证书(公共)-1-04-01新增软件授权证书-是否已启用部署不能为空", false);
                    Assert.isNull(omsSoftwareAuthorization_2.getAuthorizationSchemeId(), "D1新增软件授权证书(公共)-1-04-01新增软件授权证书-配置方案ID不能为空", false);
                    Assert.isNull(omsSoftwareAuthorization_2.getSchemeAuthorizationType(), "D1新增软件授权证书(公共)-1-04-01新增软件授权证书-授权类型不能为空", false);
                    Assert.isNull(omsSoftwareAuthorization_2.getSubjectLifeCycle(), "D1新增软件授权证书(公共)-1-04-01新增软件授权证书-主体生命周期不能为空", false);
                    string_4 = mOmsSoftwareAuthorizationService.addSoftwareAuthorization(omsSoftwareAuthorization_2)/*vcase invoke 本地 method 方法调用;*/;


                }
//ModelCode: receptionService
                QueryReceiveFieldDetailRespDto receptionServiceRes_3 = null;
                if (string_4 != null) {
                    QueryReceiveFieldDetailReqDto receptionServiceReq_2 = new QueryReceiveFieldDetailReqDto();
                    if (string_4 != null) {
                        receptionServiceReq_2.setAuthorizationId(string_4);//SimpleFieldAssign//sourceId:929549_1_41358
                    }

                    /*M1-接收出参字段[3715]  用于特殊方法接收上游入参。 */
                    Assert.isNull(receptionServiceReq_2.getAuthorizationId(), "D1新增软件授权证书(公共)-M1-接收出参字段-授权证书ID不能为空", false);
                    receptionServiceRes_3 = nbSecurity.queryReceiveFieldDetail(receptionServiceReq_2);


                    receptionServiceRes_1 = receptionServiceRes_3;
                }
            }
        }
        AddSoftwareAuthorizationComRespDto retData = new AddSoftwareAuthorizationComRespDto();
        if (receptionServiceRes_1 != null) {
            retData.setAuthorizationId(receptionServiceRes_1.getAuthorizationId());//SimpleFieldAssign//sourceId:929551_1
        }


        return retData;
    }

    /**
     * D1查询软件授权证书列表[6553]
     * gen by moon at 5/13/2023, 9:07:42 PM
     */
    @Trace(operationName = "D1查询软件授权证书列表")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public QuerySoftwareAuthorizationListRespDto querySoftwareAuthorizationList(QuerySoftwareAuthorizationListReqDto reqDto) {


        List<OmsSoftwareAuthorization> listOmsSoftwareAuthorization_1 = new ArrayList<>();
//步骤0: 1-14-01查询软件授权证书列表 - querySoftwareAuthorizationList
        List<OmsSoftwareAuthorization> listOmsSoftwareAuthorization = new ArrayList<>();
        QuerySoftwareAuthorizationListReq querySoftwareAuthorizationListReq = new QuerySoftwareAuthorizationListReq();
        if (reqDto != null) {
            querySoftwareAuthorizationListReq.setAuthorizationSpaceId(reqDto.getAuthorizationSpaceId());//SimpleFieldAssign//sourceId:927901_1
            querySoftwareAuthorizationListReq.setIsArchive(reqDto.getIsArchive());//SimpleFieldAssign//sourceId:927902_1
        }

        /*1-14-01查询软件授权证书列表[6552]   */
        Assert.isNull(querySoftwareAuthorizationListReq.getAuthorizationSpaceId(), "D1查询软件授权证书列表-1-14-01查询软件授权证书列表-租户空间ID不能为空", false);
        Assert.isNull(querySoftwareAuthorizationListReq.getIsArchive(), "D1查询软件授权证书列表-1-14-01查询软件授权证书列表-是否存档不能为空", false);
        listOmsSoftwareAuthorization = mOmsSoftwareAuthorizationService.querySoftwareAuthorizationList(querySoftwareAuthorizationListReq)/*vcase invoke 本地 method 方法调用;*/;


        listOmsSoftwareAuthorization_1 = listOmsSoftwareAuthorization;

        QuerySoftwareAuthorizationListRespDto retData = new QuerySoftwareAuthorizationListRespDto();
        retData.setSoftwareAuthorizationList(listOmsSoftwareAuthorization_1.stream().map(item -> BeanUtil.toBean(item, SoftwareAuthorizationDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:935494_1


        return retData;
    }

    /**
     * D1查询软件授权证书详情[6610]
     * gen by moon at 5/13/2023, 5:04:16 AM
     */
    @Trace(operationName = "D1查询软件授权证书详情")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public QuerySoftwareAuthorizationDetailRespDto querySoftwareAuthorizationDetail(QuerySoftwareAuthorizationDetailReqDto reqDto) {


        OmsSoftwareAuthorization omsSoftwareAuthorization_1 = null;
//步骤0: 1-04-01查询软件授权证书详情 - querySoftwareAuthorizationDetail
        OmsSoftwareAuthorization omsSoftwareAuthorization = null;
        QuerySoftwareAuthorizationDetailReq querySoftwareAuthorizationDetailReq = new QuerySoftwareAuthorizationDetailReq();
        if (reqDto != null) {
            querySoftwareAuthorizationDetailReq.setAuthorizationId(reqDto.getAuthorizationId());//SimpleFieldAssign//sourceId:928512_1
        }

        /*1-04-01查询软件授权证书详情[6605]   */
        Assert.isNull(querySoftwareAuthorizationDetailReq.getAuthorizationId(), "D1查询软件授权证书详情-1-04-01查询软件授权证书详情-授权证书ID不能为空", false);
        omsSoftwareAuthorization = mOmsSoftwareAuthorizationService.querySoftwareAuthorizationDetail(querySoftwareAuthorizationDetailReq)/*vcase invoke 本地 method 方法调用;*/;


        omsSoftwareAuthorization_1 = omsSoftwareAuthorization;

        QuerySoftwareAuthorizationDetailRespDto retData = new QuerySoftwareAuthorizationDetailRespDto();
        if (omsSoftwareAuthorization_1 != null) {
            retData.setAuthorizationId(omsSoftwareAuthorization_1.getAuthorizationId());//SimpleFieldAssign//sourceId:928553_1
            retData.setAuthorizationName(omsSoftwareAuthorization_1.getAuthorizationName());//SimpleFieldAssign//sourceId:928554_1
            retData.setSchOpenRecordId(omsSoftwareAuthorization_1.getSchOpenRecordId());//SimpleFieldAssign//sourceId:928555_1
            retData.setSchOpenRecordCode(omsSoftwareAuthorization_1.getSchOpenRecordCode());//SimpleFieldAssign//sourceId:928556_1
            retData.setApplObjType(omsSoftwareAuthorization_1.getApplObjType());//SimpleFieldAssign//sourceId:931060_1
            retData.setAuthorizationKeyTypeCode(omsSoftwareAuthorization_1.getAuthorizationKeyTypeCode());//SimpleFieldAssign//sourceId:932205_1
            retData.setAuthorizationObjectId(omsSoftwareAuthorization_1.getAuthorizationObjectId());//SimpleFieldAssign//sourceId:928558_1
            retData.setApplexName(omsSoftwareAuthorization_1.getApplexName());//SimpleFieldAssign//sourceId:928559_1
            retData.setAuthorizationSpaceId(omsSoftwareAuthorization_1.getAuthorizationSpaceId());//SimpleFieldAssign//sourceId:928560_1
            retData.setSpaceShortName(omsSoftwareAuthorization_1.getSpaceShortName());//SimpleFieldAssign//sourceId:928561_1
            retData.setDnsAddresses(omsSoftwareAuthorization_1.getDnsAddresses());//SimpleFieldAssign//sourceId:928562_1
            retData.setIpAddresses(omsSoftwareAuthorization_1.getIpAddresses());//SimpleFieldAssign//sourceId:928563_1
            retData.setServerMacCode(omsSoftwareAuthorization_1.getServerMacCode());//SimpleFieldAssign//sourceId:928564_1
            retData.setIsMainAuthorization(omsSoftwareAuthorization_1.getIsMainAuthorization());//SimpleFieldAssign//sourceId:928565_1
            retData.setIsDeploymentEnabled(omsSoftwareAuthorization_1.getIsDeploymentEnabled());//SimpleFieldAssign//sourceId:928566_1
            retData.setAuthorizationSchemeId(omsSoftwareAuthorization_1.getAuthorizationSchemeId());//SimpleFieldAssign//sourceId:928567_1
            retData.setSchemeAuthorizationType(omsSoftwareAuthorization_1.getSchemeAuthorizationType());//SimpleFieldAssign//sourceId:928568_1
            retData.setAuthorizationNum(omsSoftwareAuthorization_1.getAuthorizationNum());//SimpleFieldAssign//sourceId:928569_1
            retData.setAuthorizationStartTime(omsSoftwareAuthorization_1.getAuthorizationStartTime());//SimpleFieldAssign//sourceId:928570_1
            retData.setAuthorizationEndTime(omsSoftwareAuthorization_1.getAuthorizationEndTime());//SimpleFieldAssign//sourceId:928571_1
            retData.setAuthorizationUnit(omsSoftwareAuthorization_1.getAuthorizationUnit());//SimpleFieldAssign//sourceId:928572_1
            retData.setDeployTypeCode(omsSoftwareAuthorization_1.getDeployTypeCode());//SimpleFieldAssign//sourceId:928573_1
            retData.setSubjectLifeCycle(omsSoftwareAuthorization_1.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:928574_1
            retData.setOperationInductionId(omsSoftwareAuthorization_1.getOperationInductionId());//SimpleFieldAssign//sourceId:928575_1
            retData.setOperateTime(omsSoftwareAuthorization_1.getOperateTime());//SimpleFieldAssign//sourceId:928579_1
        }


        return retData;
    }

    /**
     * D1修改软件授权证书[6613]
     * gen by moon at 5/13/2023, 9:17:52 PM
     */
    @Trace(operationName = "D1修改软件授权证书")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public UpdateSoftwareAuthorizationRespDto updateSoftwareAuthorization(UpdateSoftwareAuthorizationReqDto reqDto) {


        //virtualUsage 1-04-01修改软件授权证书  41565
        boolean bOOLEAN;
        OmsSoftwareAuthorization omsSoftwareAuthorization = new OmsSoftwareAuthorization();
        if (reqDto != null) {
            omsSoftwareAuthorization.setAuthorizationId(reqDto.getAuthorizationId());//SimpleFieldAssign//sourceId:928807_1_41565
            omsSoftwareAuthorization.setAuthorizationSpaceId(reqDto.getAuthorizationSpaceId());//SimpleFieldAssign//sourceId:936448_1_41565
            omsSoftwareAuthorization.setAuthorizationName(reqDto.getAuthorizationName());//SimpleFieldAssign//sourceId:928808_1_41565
            omsSoftwareAuthorization.setDnsAddresses(reqDto.getDnsAddresses());//SimpleFieldAssign//sourceId:931066_1_41565
            omsSoftwareAuthorization.setIpAddresses(reqDto.getIpAddresses());//SimpleFieldAssign//sourceId:931067_1_41565
            omsSoftwareAuthorization.setServerMacCode(reqDto.getServerMacCode());//SimpleFieldAssign//sourceId:931068_1_41565
            omsSoftwareAuthorization.setIsDeploymentEnabled(reqDto.getIsDeploymentEnabled());//SimpleFieldAssign//sourceId:928809_1_41565
            omsSoftwareAuthorization.setDeployTypeCode(reqDto.getDeployTypeCode());//SimpleFieldAssign//sourceId:928810_1_41565
        }

        /*1-04-01修改软件授权证书[6612]   */
        Assert.isNull(omsSoftwareAuthorization.getAuthorizationId(), "D1修改软件授权证书-1-04-01修改软件授权证书-授权证书ID不能为空", false);
        Assert.isNull(omsSoftwareAuthorization.getAuthorizationSpaceId(), "D1修改软件授权证书-1-04-01修改软件授权证书-租户空间ID不能为空", false);
        bOOLEAN = mOmsSoftwareAuthorizationService.updateSoftwareAuthorization(omsSoftwareAuthorization)/*vcase invoke 本地 method 方法调用;*/;


        if ((reqDto != null && reqDto.getIsDeploymentEnabled() != null && reqDto.getIsDeploymentEnabled().equals("TRUE") && reqDto != null && reqDto.getDeployTypeCode() != null)) {
            //if((D1修改软件授权证书.是否已启用部署 等于 是 and D1修改软件授权证书.部署类型编码 值不等于空 ))  41564

            AddGenerateLicenseComRespDto addGenerateLicenseComRespDto = null;
            AddGenerateLicenseComReqDto addGenerateLicenseComReqDto = new AddGenerateLicenseComReqDto();
            if (reqDto != null) {
                addGenerateLicenseComReqDto.setAuthorizationSpaceId(reqDto.getAuthorizationSpaceId());//SimpleFieldAssign//sourceId:936761_1_41566
            }

            /*D1生成License(公共)[6643]   */
            Assert.isNull(addGenerateLicenseComReqDto.getAuthorizationSpaceId(), "D1修改软件授权证书-D1生成License(公共)-租户空间ID不能为空", false);
            addGenerateLicenseComRespDto = addGenerateLicenseCom(addGenerateLicenseComReqDto)/*vcase invoke 同服务,同domain*/;


        }
        UpdateSoftwareAuthorizationRespDto retData = new UpdateSoftwareAuthorizationRespDto();


        return retData;
    }

    /**
     * D1删除软件授权证书[6616]
     * gen by moon at 5/12/2023, 6:52:45 PM
     */
    @Trace(operationName = "D1删除软件授权证书")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public DeleteSoftwareAuthorizationRespDto deleteSoftwareAuthorization(DeleteSoftwareAuthorizationReqDto reqDto) {


        //virtualUsage 1-04-01查询软件授权证书详情  41292
        OmsSoftwareAuthorization omsSoftwareAuthorization = null;
        QuerySoftwareAuthorizationDetailReq querySoftwareAuthorizationDetailReq = new QuerySoftwareAuthorizationDetailReq();
        if (reqDto != null) {
            querySoftwareAuthorizationDetailReq.setAuthorizationId(reqDto.getAuthorizationId());//SimpleFieldAssign//sourceId:928923_1_41292
        }

        /*1-04-01查询软件授权证书详情[6605]   */
        Assert.isNull(querySoftwareAuthorizationDetailReq.getAuthorizationId(), "D1删除软件授权证书-1-04-01查询软件授权证书详情-授权证书ID不能为空", false);
        omsSoftwareAuthorization = mOmsSoftwareAuthorizationService.querySoftwareAuthorizationDetail(querySoftwareAuthorizationDetailReq)/*vcase invoke 本地 method 方法调用;*/;
        Assert.isTrue(omsSoftwareAuthorization == null || omsSoftwareAuthorization.getSubjectLifeCycle() == null, "找不到数据，系统异常", false);


        if ((omsSoftwareAuthorization != null && omsSoftwareAuthorization.getSubjectLifeCycle() != null && omsSoftwareAuthorization.getSubjectLifeCycle().equals("EDITING"))) {
            //if(1-04-01查询软件授权证书详情.主体生命周期 等于 正在编辑)  41293

            boolean bOOLEAN;
            String string = new String();
            if (reqDto != null) {
                string = reqDto.getAuthorizationId();
                ;//SimpleFieldAssign//sourceId:928911_1_41294
            }

            /*1-04-01删除软件授权证书[6615]   */
            Assert.isNull(string, "D1删除软件授权证书-1-04-01删除软件授权证书-授权证书ID不能为空", false);
            bOOLEAN = mOmsSoftwareAuthorizationService.deleteSoftwareAuthorization(string)/*vcase invoke 本地 method 方法调用;*/;


        }
        DeleteSoftwareAuthorizationRespDto retData = new DeleteSoftwareAuthorizationRespDto();


        return retData;
    }

    /**
     * D1生成License(公共)[6643]
     * gen by moon at 5/13/2023, 9:07:38 PM
     */
    @Trace(operationName = "D1生成License(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public AddGenerateLicenseComRespDto addGenerateLicenseCom(AddGenerateLicenseComReqDto reqDto) {


        AddGenerateLicenseRespDto generateLicenseRes_1 = null;
//步骤0: 1-14-01查询软件授权证书列表 - querySoftwareAuthorizationList
        List<OmsSoftwareAuthorization> listOmsSoftwareAuthorization = new ArrayList<>();
        QuerySoftwareAuthorizationListReq querySoftwareAuthorizationListReq = new QuerySoftwareAuthorizationListReq();
        querySoftwareAuthorizationListReq.setIsArchive("FALSE");//sourceId:936430_1
        if (reqDto != null) {
            querySoftwareAuthorizationListReq.setAuthorizationSpaceId(reqDto.getAuthorizationSpaceId());//SimpleFieldAssign//sourceId:936429_1
        }

        /*1-14-01查询软件授权证书列表[6552]   */
        Assert.isNull(querySoftwareAuthorizationListReq.getAuthorizationSpaceId(), "D1生成License(公共)-1-14-01查询软件授权证书列表-租户空间ID不能为空", false);
        Assert.isNull(querySoftwareAuthorizationListReq.getIsArchive(), "D1生成License(公共)-1-14-01查询软件授权证书列表-是否存档不能为空", false);
        listOmsSoftwareAuthorization = mOmsSoftwareAuthorizationService.querySoftwareAuthorizationList(querySoftwareAuthorizationListReq)/*vcase invoke 本地 method 方法调用;*/;


//步骤1: M1新增生成License（特殊方法） - addGenerateLicense
        //ModelCode: generateLicense
        AddGenerateLicenseRespDto generateLicenseRes = null;
        if (listOmsSoftwareAuthorization != null && !CollectionUtil.isEmpty(listOmsSoftwareAuthorization) && listOmsSoftwareAuthorization.size() > 0) {
            AddGenerateLicenseReqDto generateLicenseReq = new AddGenerateLicenseReqDto();
            if (listOmsSoftwareAuthorization != null && !CollectionUtil.isEmpty(listOmsSoftwareAuthorization) && listOmsSoftwareAuthorization != null && !CollectionUtil.isEmpty(listOmsSoftwareAuthorization)) {
                generateLicenseReq.setSoftwareAuthorizationList(listOmsSoftwareAuthorization.stream().map(item -> BeanUtil.toBean(item, SoftwareAuthorizationDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:936428_1
            }

            /*M1新增生成License（特殊方法）[6642]   */

            generateLicenseRes = nbSecurity.addGenerateLicense(generateLicenseReq);


            generateLicenseRes_1 = generateLicenseRes;
        }

//步骤2: 1-2-15新增底层框架超文本内容 - addFrameworkHypertextContent
        String string = null;
        HypertextContent hypertextContent = new HypertextContent();
        hypertextContent.setReleationContTypeCode("SPACE_LICENSE");//sourceId:935964_1
        hypertextContent.setHypertextType("CODE_HEADER_FILE");//sourceId:935966_1
        if (reqDto != null) {
            hypertextContent.setReleationContId(reqDto.getAuthorizationSpaceId());//SimpleFieldAssign//sourceId:935965_1
        }
        if (generateLicenseRes != null) {
            hypertextContent.setHypertextContent(generateLicenseRes.getCodeHeaderText());//SimpleFieldAssign//sourceId:935967_1
        }

        /*1-2-15新增底层框架超文本内容-License代码头文件文本[6646]   */
        Assert.isNull(hypertextContent.getReleationContTypeCode(), "D1生成License(公共)-1-2-15新增底层框架超文本内容-License代码头文件文本-超文本内容关联类型编码不能为空", false);
        Assert.isNull(hypertextContent.getReleationContId(), "D1生成License(公共)-1-2-15新增底层框架超文本内容-License代码头文件文本-超文本内容关联主键ID不能为空", false);
        Assert.isNull(hypertextContent.getHypertextType(), "D1生成License(公共)-1-2-15新增底层框架超文本内容-License代码头文件文本-超文本内容类型不能为空", false);
        Assert.isNull(hypertextContent.getHypertextContent(), "D1生成License(公共)-1-2-15新增底层框架超文本内容-License代码头文件文本-超文本内容不能为空", false);
        string = mHypertextContentService.addFrameworkHypertextContent(hypertextContent)/*vcase invoke 本地 method 方法调用;*/;


//步骤3: 1-2-15新增底层框架超文本内容 - addFrameworkHypertextContent
        String string_2 = null;
        HypertextContent hypertextContent_1 = new HypertextContent();
        hypertextContent_1.setReleationContTypeCode("SPACE_LICENSE");//sourceId:935969_1
        hypertextContent_1.setHypertextType("CODE_IMPLEMENT_FILE");//sourceId:935971_1
        if (reqDto != null) {
            hypertextContent_1.setReleationContId(reqDto.getAuthorizationSpaceId());//SimpleFieldAssign//sourceId:935970_1
        }
        if (generateLicenseRes != null) {
            hypertextContent_1.setHypertextContent(generateLicenseRes.getCodeImplementText());//SimpleFieldAssign//sourceId:935972_1
        }

        /*1-2-15新增底层框架超文本内容-License代码实现文件文本[6646]   */
        Assert.isNull(hypertextContent_1.getReleationContTypeCode(), "D1生成License(公共)-1-2-15新增底层框架超文本内容-License代码实现文件文本-超文本内容关联类型编码不能为空", false);
        Assert.isNull(hypertextContent_1.getReleationContId(), "D1生成License(公共)-1-2-15新增底层框架超文本内容-License代码实现文件文本-超文本内容关联主键ID不能为空", false);
        Assert.isNull(hypertextContent_1.getHypertextType(), "D1生成License(公共)-1-2-15新增底层框架超文本内容-License代码实现文件文本-超文本内容类型不能为空", false);
        Assert.isNull(hypertextContent_1.getHypertextContent(), "D1生成License(公共)-1-2-15新增底层框架超文本内容-License代码实现文件文本-超文本内容不能为空", false);
        string_2 = mHypertextContentService.addFrameworkHypertextContent(hypertextContent_1)/*vcase invoke 本地 method 方法调用;*/;


        AddGenerateLicenseComRespDto retData = new AddGenerateLicenseComRespDto();
        if (generateLicenseRes_1 != null) {
            retData.setCodeHeaderText(generateLicenseRes_1.getCodeHeaderText());//SimpleFieldAssign//sourceId:935748_1
            retData.setCodeImplementText(generateLicenseRes_1.getCodeImplementText());//SimpleFieldAssign//sourceId:935749_1
        }


        return retData;
    }

    @Resource
    private MOmsSoftwareAuthorizationService mOmsSoftwareAuthorizationService;
    @Resource
    private MHypertextContentService mHypertextContentService;
    //
}
